package com.ship.boats.service;

import com.github.pagehelper.PageInfo;
import com.ship.boats.domain.SpBoatsPortMessage;
import com.ship.boats.domain.SpPortInformation;
import com.ship.boats.domain.dto.QueryPortMessageRq;
import com.ship.boats.domain.dto.QueryTimeZoneSwitchingRq;
import com.ship.boats.domain.dto.UpdatePortMessageRq;
import com.ship.boats.domain.vo.QueryPortMessageInfo;
import com.ship.boats.domain.vo.QueryPortNameInfo;
import com.ship.boats.domain.vo.QueryTimeZoneSwitchingInfo;

import java.text.ParseException;
import java.util.List;

public interface BoatsPortMessageService {
    boolean createPortInformation(List<SpBoatsPortMessage> portList);

    List<String> queryPortMessageConditions(String type);

    PageInfo<QueryPortMessageInfo> queryPortMessageList(QueryPortMessageRq rq);

    List<QueryPortMessageInfo> exportPortMessage(QueryPortMessageRq rq);

    QueryTimeZoneSwitchingInfo timeZoneSwitching(QueryTimeZoneSwitchingRq rq) throws ParseException;

    List<QueryPortNameInfo> queryPortNameAll(String portName);

    boolean updatePortMessageById(UpdatePortMessageRq rq);

    SpBoatsPortMessage queryPortMessageById(Long id);
}
